package com.cn.data.ioc;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @Author: chenl
 * @Date: 2019/11/9 22:36
 */
@Configuration
@EnableAspectJAutoProxy
@ComponentScan("com.cn.data.ioc")
public class AppConfig {

    @Bean
    public IndexService indexService(){

        return new IndexService();
    }
}
